package com.young.com.young.hello.dubbo.service.user.consumer.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.young.hello.dubbo.service.user.api.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 描述:
 *
 * @author BluceYoung
 * @create 2020-06-19 16:08
 * B站：TeacherYoung凌风
 * www.teacheryoung.com
 */
@RestController
public class UserController {

    @Reference(version = "${user.service.version}")
    UserService userService;

    @GetMapping("/hi")
    public String sayHi(){
        return userService.sayHi();
    }
}
